var mainwnd = windows.CreateObject({parent:null, rect:{left:0,right:0,top:0,bottom:0}, name:"eg1", style:0x10000000, styleex:0x00080000 })
//var mainobjtree = objectTrees.CreateObject("mainobjtree");
var mainobjtree = {"name":"mainobjtree", "bk":imageObject }

mainwnd.BindToObjectTree(mainobjtree)
